﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.Views.StatusIconConverter
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Globalization;


namespace DnProcessSimulateCommands.ExportToRTR.Views;

public class StatusIconConverter : ExportToRTRContentTreeNoConvertBackBaseConverter
{
  public override object Convert(
    object value,
    Type targetType,
    object parameter,
    CultureInfo culture)
  {
    string str = string.Empty;
    if (value is ExportToRTRTreeViewStatusType treeViewStatusType)
    {
      switch (treeViewStatusType)
      {
        case ExportToRTRTreeViewStatusType.TREE_VIEW_STATUS_TYPE_OK:
          str = "/DnProcessSimulateCommands;component/ExportToRTR/Resources/OK.ico";
          break;
        case ExportToRTRTreeViewStatusType.TREE_VIEW_STATUS_TYPE_INFO:
          str = "/DnProcessSimulateCommands;component/ExportToRTR/Resources/information.ico";
          break;
        case ExportToRTRTreeViewStatusType.TREE_VIEW_STATUS_TYPE_WARNING:
          str = "/DnProcessSimulateCommands;component/ExportToRTR/Resources/Warning.ico";
          break;
        case ExportToRTRTreeViewStatusType.TREE_VIEW_STATUS_TYPE_ERROR:
          str = "/DnProcessSimulateCommands;component/ExportToRTR/Resources/Error.ico";
          break;
        default:
          str = string.Empty;
          break;
      }
    }
    return (object) str;
  }
}
